# -*- coding: utf-8 -*-

activate_this = 'F:/subs/venv/Scripts/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))

import sys
sys.path.insert(0, 'F:/subs/njusubs')

sys.stdout = sys.stderr

from app import app as application

import gevent.pywsgi

if __name__ == '__main__':
    #application.run(port=8081)
    gevent_server = gevent.pywsgi.WSGIServer(('', 8082), application)
    gevent_server.serve_forever()

